$main-color: rgb(7, 106, 80);
$shallow-color: rgb(55, 189, 153);
.login-sign__container {
  width: 100%;
  height: 100%;
  background-color: white;

  margin: 10px auto;
  width: 50rem;
  height: 30rem;
  border-radius: 1rem;
  box-shadow: 2px 6px 5px rgba(32, 61, 127, 0.3);
  display: flex;
  justify-content: space-between;
  position: relative;
  overflow: hidden;

  img {
    position: absolute;
    z-index: 100;
    width: 20rem;
    height: auto;

    &.img-left {
      top: 0rem;
      left: -1rem;
      opacity: 0;
      visibility: hidden;
      transition: all 0.5s;

      &.active {
        opacity: 1;
        top: 5rem;
        visibility: visible;
        transition: 0.5s 1s;
      }
    }

    &.img-right {
      top: 0rem;
      right: -1rem;
      opacity: 0;
      visibility: hidden;
      transition: all 0.5s;

      &.active {
        top: 5rem;
        opacity: 1;
        visibility: visible;
        transition: 0.5s 1s;
      }
    }
  }

  .form-bg {
    position: absolute;
    top: -50%;
    left: -50%;

    width: 100%;
    height: 100%;
    border-radius: 5rem;
    transform-origin: right bottom;
    transform: rotateZ(-45deg);
    background-color: $main-color;
    transition: all 1.5s ease-in-out;

    &.active {
      transform: rotateZ(135deg);
    }
  }

  .form-left {
    opacity: 0;
    transition: all 0.5s;

    &.active {
      opacity: 1;
      transition: all 0.5s 1s;
    }
  }

  .form-right {
    opacity: 0;
    transition: all 0.5s;

    &.active {
      opacity: 1;
      transition: all 0.5s 1s;
    }
  }

  .form-right,
  .form-left {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .title {
      color: $main-color;
    }

    .input-group {
      display: flex;
      align-items: center;
      /* background-color: red; */
      position: relative;

      input {
        box-sizing: border-box;
        padding: 0;
        margin: 1rem 0;
        width: 15rem;
        height: 3rem;
        font-size: 1rem;
        color: $shallow-color;

        border: none;
        border-bottom: 1px solid $main-color;
        background-color: transparent;

        &::placeholder {
          color: $shallow-color;
        }

        &:focus {
          outline: none;
        }
      }

      .icon {
        position: absolute;
        right: 0px;
        fill: $shallow-color;
      }
    }

    .form-btn {
      display: block;
      width: 10rem;
      padding: 10px 5px;
      font-size: 1.1rem;
      font-weight: bold;
      color: #fff;
      background-color: $main-color;
      border: none;
      border-radius: 5rem;
      box-shadow: 0 5px 4px $main-color;

      &:disabled {
        background-color: rgba(128, 128, 128, 0.7);
      }
    }
  }

  .sign-up,
  .sign-in {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  a {
    color: $main-color;
    position: absolute;
    bottom: 2rem;

    &.signup-link {
      right: 4rem;
    }

    &.signin-link {
      left: 2rem;
    }
  }
}
